<template>
    <ComForm ref="formRef" :format="format"> </ComForm>
    <div class="containerbody">
      <Month style="margin: 20px 80px;" v-for="el in monthstring" :number="el"></Month>
    </div>
</template>


<script setup>

import Month from './Month.vue';

let formRef = ref();
let monthstring = ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]

const format = ref([
  {
    label: "月份",
    prop: "postCode",
    type: "date",
    dateType:"year",
    defaultValue: "",
    span: 5,
  },
  {
    label: "",
    prop: "",
    type: "button",
    btns: [
      { label: "查询", event: "submit"},
      { label: "导出", event: "reset" ,type:"info"},
    ],
    span: 12,
  }
]);

</script>
<style scoped>
.form {
  padding: 20px 20px;
}

.containerbody{
    display: flex;
    flex-wrap: wrap;
}
</style>
